package netcracker;

/**
 *
 * @author Galimov, Metsker
 */
public class Flat {
    
    private double square;
    private int rooms;
    final double STDSQUARE = 50;
    final int STDROOMS = 2;
    
    public Flat(){
        square = STDSQUARE;
        rooms = STDROOMS; 
    }

    public Flat(double square){
        this.square = square;
        rooms = STDROOMS; 
    }

    public Flat(double square, int rooms){
        this.square = square;
        this.rooms = rooms; 
    }
    
    public Flat(Flat flt){
        this.square = flt.square;
        this.rooms = flt.rooms; 
    }
    
    public int getRooms(){
        return rooms;
    }
    
    public double getSquare(){
        return square;
    }
    
    public void setRooms(int rooms){
        this.rooms = rooms;
    }
    
    public void setSquare(double square){
        this.square = square;
    }
    
}
